#include "StdAfx.h"
#include ".\echosendthread.h"
#include "IOTest.h"
#include "IOTestDoc.h"
#include "IOTestView.h"


EchoSendThread::EchoSendThread(void)
{
}

EchoSendThread::~EchoSendThread(void)
{
}

DWORD EchoSendThread::run()
{
	m_parent->checkConnectionList();
	m_parent->createCheckConnectionListThread();
	for ( ;; )
	{
		if ( m_eventThreadStop.wait( 0 ) == true ) break;
		m_parent->sendEchoConnectionList();
	}
	return ( 0 );
}

CheckSocketTimeOut::CheckSocketTimeOut(void)
{
}

CheckSocketTimeOut::~CheckSocketTimeOut(void)
{
}

DWORD CheckSocketTimeOut::run()
{
	for ( ;; )
	{
		if ( m_eventThreadStop.wait( 0 ) == true ) break;
		m_parent->checkSocketTimeOut();
	}
	return ( 0 );
}
 
ReConnectSocketListThread::ReConnectSocketListThread(void)
{
}

ReConnectSocketListThread::~ReConnectSocketListThread(void)
{
}

DWORD ReConnectSocketListThread::run()
{
	for ( ;; )
	{
		if ( m_eventThreadStop.wait( 0 ) == true ) break;
		m_parent->checkConnectionList();
	}
	return ( 0 );
}
